#ifndef __MUTEX_H__
#define __MUTEX_H__

/*
 * Structure de données pour la gestion des mutex
 */
typedef struct thread_mutex thread_mutex_t;

extern int thread_mutex_init(thread_mutex_t **mutex);

extern int thread_mutex_lock(thread_mutex_t *mutex);

extern int thread_mutex_unlock(thread_mutex_t *mutex);

extern int thread_mutex_destroy(thread_mutex_t *mutex);

#endif /* __MUTEX_H__ */
